package org.wyq.myweb.jmx.factory;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.FactoryBean;
import org.wyq.myweb.jmx.service.IMXBeanService;

public class MXBeanInfoFactory2 implements FactoryBean<IMXBeanService>, BeanFactoryAware {
	private BeanFactory beanFactory;

	@Override
	public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
		this.beanFactory = beanFactory;
	}

	@Override
	public IMXBeanService getObject() throws Exception {
		return null;
	}

	@Override
	public Class<?> getObjectType() {
		return IMXBeanService.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
	
}
